-- GENERATED SPELL FOR [Shadowbat] --


function spell0_16173(pUnit, Event) --@Dark Shriek,Self--
pUnit:FullCastSpellOnTarget(29298,pUnit)
pUnit:RegisterEvent('Sorts_16173', 4298, 1)
end

function Sorts_16173(pUnit, Event)
local choix_sorts_16173 = math.random(0, 0)
if choix_sorts_16173 == 0 then
pUnit:RegisterEvent('spell0_16173', 1, 1)
end
end

function mob16173_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16173', math.random(1500, 3000), 1)
end

function mob16173_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16173_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16173_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16173, 1, 'mob16173_Action')
RegisterUnitEvent(16173, 2, 'mob16173_Leave')
RegisterUnitEvent(16173, 3, 'mob16173_Kill')
RegisterUnitEvent(16173, 4, 'mob16173_Die')
